// 2013-7-30上午12:22:56  net.betou.trade.entity.main.base.BaseVideo.java

package net.betou.trade.entity.main.base;

import java.io.Serializable;
import java.util.Date;

import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.News;
import net.betou.trade.entity.main.Video;

/**
 * 视频
 * 已废弃
 * @author 叶装装
 * @deprecated
 */
public abstract class BaseVideo implements Serializable{

	
	private static final long serialVersionUID = 1L;

	public BaseVideo( ){}
	
	private Integer id;
	private String title;
	private String description;
	private String path; 
	private String img;
	private Date uploadTime;
	
	private AgentAndAdmins admin;
	
	public Integer getId( ) {
		return id;
	}

	public void setId( Integer id ) {
		this.id = id;
	}

	public String getTitle( ) {
		return title;
	}

	public void setTitle( String title ) {
		this.title = title;
	}

	public String getPath( ) {
		return path;
	}

	public void setPath( String path ) {
		this.path = path;
	}

	public String getImg( ) {
		return img;
	}

	public void setImg( String img ) {
		this.img = img;
	}

	public Date getUploadTime( ) {
		return uploadTime;
	}

	public void setUploadTime( Date uploadTime ) {
		this.uploadTime = uploadTime;
	}

	private int hashCode = Integer.MIN_VALUE;
	
	public boolean equals( Object obj ) {
		if( null == obj )
			return false;
		if( !( obj instanceof News ) )
			return false;
		else{
			Video news = ( Video ) obj;
			if( null == this.getId( ) || null == news.getId( ) )
				return false;
			else
				return( this.getId( ).equals( news.getId( ) ) );
		}
	}

	public int hashCode( ) {
		if( Integer.MIN_VALUE == this.hashCode ){
			if( null == this.getId( ) )
				return super.hashCode( );
			else{
				String hashStr = this.getClass( ).getName( ) + ":" + this.getId( ).hashCode( );
				this.hashCode = hashStr.hashCode( );
			}
		}
		return this.hashCode;
	}

	public AgentAndAdmins getAdmin( ) {
		return admin;
	}

	public void setAdmin( AgentAndAdmins admin ) {
		this.admin = admin;
	}

	public String getDescription( ) {
		return description;
	}

	public void setDescription( String description ) {
		this.description = description;
	}
	
}
